<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>测试Thymeleaf使用</title>
</head>
<body>
<h3 th:text="${name}"></h3>
<hr/>
<div shiro:hasPermission="user:add">
进入用户添加的功能：<a href="/add">添加用户</a><br/>
</div>
<div shiro:hasPermission="user:update">
进入用户更新的功能：<a href="/update">更新用户</a><br/>
</div>
<a th:href="@{/loginOut}">注销</a>
</body>
</html>